package com.trover.core.http

interface BaseApiService {
    companion object {
        const val BASE_URL = "http://49.4.2.82:8081/"

        /**
         * 网络层失败对应HTTP的状态码
         */
        const val ACCESS_TOKEN_EXPIRED = 201
        const val SUCCESS_NO_RESPONSE = 204
        const val BAD_REQUEST = 400
        const val UNAUTHORIZED = 401
        const val FORBIDDEN = 403
        const val NOT_FOUND = 404
        const val METHOD_NOT_ALLOWED = 405
        const val REQUEST_TIMEOUT = 408
        const val CONFLICT = 409
        const val PRECONDITION_FAILED = 412
        const val INTERNAL_SERVER_ERROR = 500
        const val BAD_GATEWAY = 502
        const val SERVICE_UNAVAILABLE = 503
        const val GATEWAY_TIMEOUT = 504
    }
}